-- GENERATED SPELL FOR [Scalewing Serpent] --


function spell0_20749(pUnit, Event) --@Lightning Strike,n/a--
pUnit:FullCastSpellOnTarget(37841,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20749', 3000, 1)
end

function Sorts_20749(pUnit, Event)
local choix_sorts_20749 = math.random(0, 0)
if choix_sorts_20749 == 0 then
pUnit:RegisterEvent('spell0_20749', 1, 1)
end
end

function mob20749_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20749', math.random(1500, 3000), 1)
end

function mob20749_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20749_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20749_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20749, 1, 'mob20749_Action')
RegisterUnitEvent(20749, 2, 'mob20749_Leave')
RegisterUnitEvent(20749, 3, 'mob20749_Kill')
RegisterUnitEvent(20749, 4, 'mob20749_Die')
